//package com.ljt.controller;
//
//import com.ljt.pojo.Pl;
//import com.ljt.pojo.User;
//import com.ljt.service.PlService;
//import com.ljt.service.UserService;
//import com.ljt.util.Result;
//import net.sf.json.JSONObject;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@CrossOrigin(allowCredentials = "true",allowedHeaders = "*")
//@RestController
//@RequestMapping("/pl")
//public class PlController {
//    @Autowired
//    private PlService plService;
//
//
//    @ResponseBody
//    @PostMapping("/doInsert")
//    public Object doInsert(@RequestParam(value="pinglun",required = false) String pinglun) {
//        //System.out.println("## running"+username+password);
//        //查询数据库
//        List<Pl> list = plService.insert(pinglun);
//        // System.out.println("## ## "+user.getUsername()+user.getPassword());
//        JSONObject json = JSONObject.fromObject(list);
//        return Result.success(json);
//    }
//
//}
